package com.xoa.model.emergency;

import com.xoa.model.department.Department;
import com.xoa.util.common.StringUtils;

public class DepartmentExt extends Department {

    // 临时封装参数，用于回显
    private Integer id;

    //临时封装参数，用于数结构是否有子级
    private boolean isLeaf=true;

    //临时封装参数，用于树结构显示
    private String label;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabel() {
        if(StringUtils.checkNull(label)){
            return getDeptName();
        }
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public boolean getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(boolean leaf) {
        isLeaf = leaf;
    }
}
